<?php
/**
 * Created by PhpStorm.
 * User: Yieong
 * Date: 14/10/21
 * Time: 上午9:27
 */

class PubChart extends LibEChart {

    protected $showType = 'tab';

    public function setShowType($type){
        if(in_array($type, array('tab', 'float'))){
            $this->showType = $type;
        }
    }

    public function show(){
        return array(
            'type' => $this->showType,
            'main' => $this->chart
        );
    }
}